package com.tebiecloud.base.client.service;

import com.tebiecloud.base.client.model.entity.BaseApp;
import com.tebiecloud.common.model.ResultBody;
import com.tebiecloud.common.security.SecurityClientDetails;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 应用管理
 * @Author: tebie
 * @Date: 2019-08-09 10:44
 */
public interface IBaseAppServiceClient {

    /**
     * 获取应用基础信息
     * @param appId
     * @returngetClientDetails
     */
    @GetMapping("/feign/app/infoapp")
    ResultBody<BaseApp> getApp(@RequestParam("appId") String appId);

    /**
     * 获取应用开发配置信息
     * @param clientId
     * @return
     */
    @GetMapping("/feign/app/infoclientdetails")
    ResultBody<SecurityClientDetails> getClientDetails(@RequestParam("clientId") String clientId);

}
